package com.neusoft.elmboot.service.Impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.elmboot.mapper.IntegralMapper;
import com.neusoft.elmboot.po.Integral;
import com.neusoft.elmboot.service.IntegralService;
import com.neusoft.elmboot.util.CommonUtil;

@Service
public class IntegralServiceImpl implements IntegralService{

    @Autowired
    private IntegralMapper integralMapper;

    @Override
    public int saveIntegral(String userId) {
        return integralMapper.saveIntegral(userId);
    }

    @Override
    public Integral getIntegralByUserid(String userId) {
        return integralMapper.getIntegralByUserid(userId);
    }

    @Override
    public int updateCount(String userId, BigDecimal count) {
        return integralMapper.updateCount(userId, count);
    }

}
